package edu.ucsur.tp.contactcenter.forms;

import java.awt.EventQueue;
import java.beans.PropertyVetoException;
import java.util.List;

import javax.swing.JDesktopPane;
import javax.swing.JInternalFrame;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JCheckBox;

import edu.ucsur.tp.negocio.mantenimientos.UsuarioNego;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import org.eclipse.wb.swing.FocusTraversalOnArray;
import java.awt.Component;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.JPanel;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JEditorPane;
import java.awt.Font;
import javax.swing.JTextArea;

public class FrmLlamadasRegistro extends JInternalFrame {
	private JTextField textField_4;

	public int modo = 1;
	private JTable tbClientes;
	private JTable tbCompras;
	private JTable tbLlamadas;
	
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					FrmLlamadasRegistro frame = new FrmLlamadasRegistro();
					frame.setVisible(true);
					frame.moveToFront();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	
	/**
	 * Create the frame.
	 */
	public FrmLlamadasRegistro() {
		setClosable(true);
		setFrameIcon(new ImageIcon(FrmLlamadasRegistro.class.getResource("/edu/ucsur/tp/contactcenter/images/Businessman.png")));
		try {
			setIcon(true);
		} catch (PropertyVetoException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		setTitle("Registro de Atenci\u00F3n Llamada");
		setBounds(100, 100, 804, 452);
		getContentPane().setLayout(null);
		
		JButton cmdSalir = new JButton("");
		cmdSalir.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				setVisible(false);
			}
		});
		cmdSalir.setIcon(new ImageIcon(FrmLlamadasRegistro.class.getResource("/edu/ucsur/tp/contactcenter/images/cancel.png")));
		cmdSalir.setBounds(718, 372, 39, 40);
		getContentPane().add(cmdSalir);
		
		JButton cmdGuardar = new JButton("");
		cmdGuardar.setIcon(new ImageIcon(FrmLlamadasRegistro.class.getResource("/edu/ucsur/tp/contactcenter/images/guardar.png")));
		cmdGuardar.setBounds(679, 372, 39, 40);
		getContentPane().add(cmdGuardar);
		
		JLabel lblIdCliente = new JLabel("Anotaciones");
		lblIdCliente.setBounds(375, 268, 93, 14);
		getContentPane().add(lblIdCliente);
		
		JLabel lblFecNaci = new JLabel("N\u00FAmero ");
		lblFecNaci.setBounds(22, 36, 70, 14);
		getContentPane().add(lblFecNaci);
		
		textField_4 = new JTextField();
		textField_4.setColumns(10);
		textField_4.setBounds(102, 33, 103, 20);
		getContentPane().add(textField_4);
		
		JLabel lblTelefonos = new JLabel("Historial de Compras");
		lblTelefonos.setBounds(22, 208, 183, 14);
		getContentPane().add(lblTelefonos);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(22, 61, 314, 123);
		getContentPane().add(scrollPane);
		
		tbClientes = new JTable();
		tbClientes.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
					"Nro Doc", "Nombre Completo" 
			}
		));
		scrollPane.setViewportView(tbClientes);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(496, 213, 261, 20);
		getContentPane().add(comboBox);
		
		JLabel lblIdentificacionDeLlamada = new JLabel("Identificaci\u00F3n de LLamada");
		lblIdentificacionDeLlamada.setForeground(Color.BLUE);
		lblIdentificacionDeLlamada.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblIdentificacionDeLlamada.setBounds(24, 11, 250, 14);
		getContentPane().add(lblIdentificacionDeLlamada);
		
		JButton btnNewButton = new JButton("Detectar Llamada");
		btnNewButton.setBounds(210, 32, 128, 23);
		getContentPane().add(btnNewButton);
		
		JScrollPane scrollPane_1 = new JScrollPane();
		scrollPane_1.setBounds(22, 223, 314, 136);
		getContentPane().add(scrollPane_1);
		
		tbCompras = new JTable();
		tbCompras.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
				"Boleto", "Ruta", "Clase", "Fecha", "Importe"
			}
		));
		scrollPane_1.setViewportView(tbCompras);
		
		JLabel lblTipificacin = new JLabel("Tipificaci\u00F3n de Llamada");
		lblTipificacin.setForeground(Color.BLUE);
		lblTipificacin.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblTipificacin.setBounds(375, 181, 250, 21);
		getContentPane().add(lblTipificacin);
		
		JLabel lblMotivoGrupo = new JLabel("Motivo Grupo");
		lblMotivoGrupo.setBounds(375, 216, 93, 14);
		getContentPane().add(lblMotivoGrupo);
		
		JLabel lblMotivoDeta = new JLabel("Motivo Deta");
		lblMotivoDeta.setBounds(375, 244, 93, 14);
		getContentPane().add(lblMotivoDeta);
		
		JComboBox comboBox_1 = new JComboBox();
		comboBox_1.setBounds(496, 241, 261, 20);
		getContentPane().add(comboBox_1);
		
		JButton btnRegistrarCliente = new JButton("Registrar Cliente");
		btnRegistrarCliente.setBounds(215, 189, 121, 23);
		getContentPane().add(btnRegistrarCliente);
		
		JTextArea textArea = new JTextArea();
		textArea.setBounds(496, 272, 261, 87);
		getContentPane().add(textArea);
		
		JLabel lblHistorialDeLlamdas = new JLabel("Historial de Llamadas");
		lblHistorialDeLlamdas.setBounds(370, 19, 183, 14);
		getContentPane().add(lblHistorialDeLlamdas);
		
		JScrollPane scrollPane_2 = new JScrollPane();
		scrollPane_2.setBounds(370, 34, 387, 136);
		getContentPane().add(scrollPane_2);
		
		tbLlamadas = new JTable();
		tbLlamadas.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
				"Fecha", "Motivo Deta", "Numero", "Duracion"
			}
		));
		scrollPane_2.setViewportView(tbLlamadas);
		setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{getContentPane(), cmdSalir, cmdGuardar, lblIdCliente, lblFecNaci, textField_4}));

	}
}
